package com.yanxiaohui.springbootmybatis.mapper;

import com.yanxiaohui.springbootmybatis.entity.ScoreRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description TODO
 * @Author： yanxh<br>
 * @Date 2019/11/7 13:57<br>
 * @Version 1.0<br>
 */
public interface ScoreRecordMapper {

    @Insert("insert into score_record(SCORE_NAME) values(#{name})")
    void addScoreRecord(@Param("name") String username);

    @Select("select * from score_record")
    List<ScoreRecord> scoreRecordList();
}
